package Input;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import Main.SpaceGame;
import Menus.FullAnnouncementMenu;

public class FullAnnouncementMenuInput implements KeyListener 
{
	SpaceGame main;
	FullAnnouncementMenu menu;
	public FullAnnouncementMenuInput(SpaceGame main,FullAnnouncementMenu m) 
	{
		this.main = main;
		this.menu = m;
	}

	public void keyPressed(KeyEvent e) 
	{
		if (e.getKeyCode() == KeyEvent.VK_UP)
		{
			menu.scrollUp();
		}
		
		else if (e.getKeyCode() == KeyEvent.VK_DOWN)
		{
			menu.scrollDown();
		}
	}

	public void keyReleased(KeyEvent arg0) 
	{
		
	}

	public void keyTyped(KeyEvent arg0) 
	{
		
	}
	
}
